<?php

/* @var $this yii\web\View */
// var_dump('<pre>',$model);
?>

<?= \yii\redactor\widgets\Redactor::widget([ 'model' => $model, 'attribute' => 'content' ]) ?>

<div class="row">
    <main class="col-md-8 main-content">
        <?php foreach ($model as $key => $data):?>
            <article id="<?=$key ?>" class="post">
                <div class="post-head">
                    <h1 class="post-title"><a href=""><?=$data['original_title']?></a></h1>
                    <div class="post-meta">
                        <span class="author">地区：<a href="/author/wangsai/"><?=$data['region']?></a></span> •
                        <time class="post-date" datetime="2017年2月21日星期二凌晨3点21分" title="2017年2月21日星期二凌晨3点21分">2017年2月21日</time>
                    </div>
                </div>
                <div class="featured-media">
                    <a href="/post/laravel-5-5-will-be-the-next-lts-release/"><img src="<?=$data['large']?>" alt="<?=$data['summary']?>"></a>
                </div>
                <div class="post-content">
                    <p><?=$data['summary']?></p>
                </div>
                <div class="post-permalink">
                    <a href="" class="btn btn-default">评论</a>
                </div>

                <footer class="post-footer clearfix">
                    <div class="pull-left tag-list">
                        <i class="fa fa-folder-open-o"></i>
                        
                    </div>
                    <div class="pull-right share">
                    </div>
                </footer>
            </article>
        <?php endforeach;?>




        <nav class="pagination" role="navigation">
            <span class="page-number">第 a 页 ⁄ 共 n 页</span>
                <a class="older-posts" href="/page/2/"><i class="fa fa-angle-right"></i></a>
        </nav>
    </main>

    <aside class="col-md-4 sidebar">
<!--         <div class="widget">
            <h4 class="title">社区</h4>
            <div class="content community">
                <p>QQ群：462694081</p>
                <p><a href="http://wenda.golaravel.com/" title="Laravel中文网问答社区" target="_blank" onclick="_hmt.push(['_trackEvent', 'big-button', 'click', '问答社区'])"><i class="fa fa-comments"></i> 问答社区</a></p>
            </div>
        </div>
 -->
        <div class="widget">
            <h4 class="title">标签</h4>
            <div class="content tag-cloud">
                <?php foreach ($tag as $k => $v): ?>
                <a href=""><?=$v['name'] ?></a>
                <?php endforeach; ?>
                <a href="">...</a>
            </div>
        </div>
    </aside>
</div>


